package com.victor.entity;

import java.sql.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * 入驻审批实体类
 *
 */
@Entity
@Table(name = "enterbrandmation")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Enterbrandmation {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)	// 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 20 )
	private Integer id;	//入驻id
	
	@Column(name = "username",length = 50)
	private String username;	//当前登录用户
	
	@Column(name = "date",length = 50)
	private String date;	//入驻时间
	
	@Column(name = "linkman",length = 50)
	private String linkman;	//联系人
	
	@Column(name = "phone",length = 50)
	private String phone;//联系电话
	
	@Column(name = "status",length = 5)
	private String status;//0入驻待审批，1已审批入驻，2已拒绝入驻
	
	@Column(name = "merch_name",length = 50)
	private String merch_name;//入驻商家名称
	
	@Column(name = "merch_message",length = 100)
	private String merch_message;//入驻商家信息
	
	@Transient
	private List<Enterbrandmationphoto> enterbrandmationphoto;//入驻商家图片列表
}
